import request from '@/utils/request'

export function getHeaderStatistics() {
  return request({
    url: '/api/services/app/StatisticsAdmin/GetHeaderStatisticsAsync',
    method: 'get'
  })
}

export function getStatisticsPlatform() {
  return request({
    url: '/api/mall/statistic/platform_real_time/',
    method: 'get'
  })
}

export function getStatisticsPlatformStore() {
  return request({
    url: '/api/mall/statistic/platform_store_data/',
    method: 'get'
  })
}

export function getStatisticsPlatformRank(query) {
  return request({
    url: '/api/mall/statistic/platform_store_rank/',
    method: 'get',
    params: query
  })
}

// 平台-时间段统计
export function getStatisticTimeRange(query) {
  return request({
    url: `/api/mall/statistic/platform_date_time_range/`,
    method: 'get',
    params: query
  })
}
